package com.github.baichuan.application.scaffold.rest.dto.membership;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Schema(title = "重置密码表单")
@Getter
@Setter
public class ResetPassword {
    @Schema(title = "用户编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户编码不能为空")
    private String uid;

    @Schema(title = "新密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, message = "新密码长度最少6位")
    private String password;

    @Schema(title = "确认密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "确认密码不能为空")
    @Size(min = 6, message = "确认密码长度最少6位")
    private String confirmPassword;
}
